export let tableOption = [{
    type: 'selection',
    width: 60,
    align: 'center'
  }, {
    title: 'ID',
    key: 'id',
    width: '70',
     slot: 'id',
    // sortable: true
  },
  {
    title: '姓名',
    key: 'username',
    slot: 'username',
  },
  {
    title: '电话',
    key: 'mobile',
    slot: 'mobile',
  },
  {
    title: '会员等级',
    key: 'vip_level',
    render: (h, params) => {
      let txt = '';
      switch (params.row.vip_level) {
        case 0:
          txt = '大众会员'
          break;
        case 1:
          txt = '一星会员'
          break;
        case 2:
          txt = '二星会员'
          break;
        case 3:
          txt = '三星会员'
          break;
        case 4:
          txt = '四星会员'
          break;
        case 5:
          txt = '五星会员'
          break;
      }

      return h('span', txt)
    }
  },
  {
    title: '余额(元)',
    key: 'balance',
    align: 'right',
    slot: 'balance',
  },
 {
    title: '会员类型',
    key: 'business_id',
     slot: 'business_id',
  },
  {
    title: '注册日期',
    key: 'create_time',
    slot: 'create_time'
  },
  {
    title: '操作',
    slot: 'action',
    width: 150,
    align: 'center',

  }
]
